/* 整体容器 */
.red-settings {
    margin: 0 auto;
    padding: 20px;
    background-color: var(--background-primary);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 标题样式 */
.red-settings h2 {
    margin: 20px 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--background-modifier-border);
    font-size: 1.6em;
    color: var(--text-normal);
}

/* 通用设置区块样式 */
.red-settings .settings-section {
    margin-bottom: 2rem;
    border: 1px solid var(--background-modifier-border);
    border-radius: 8px;
    overflow-y: auto;
    background-color: var(--background-secondary);
}

.red-settings .settings-section-header {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 1.2rem;
    background-color: var(--background-secondary);
    transition: background-color 0.3s ease;
}

.red-settings .settings-section-header:hover {
    background-color: var(--background-secondary-alt);
}

.red-settings .settings-section-header h4 {
    margin: 0;
    flex: 1;
    font-size: 1.2em;
    color: var(--text-normal);
}

.red-settings .settings-section-toggle {
    margin-right: 0.5rem;
    color: var(--text-muted);
}

.red-settings .settings-section-content {
    display: none;
    padding: 20px 10px;
    background-color: var(--background-primary);
}

.red-settings .settings-section.is-expanded .settings-section-content {
    display: block;
}

/* 主题管理区域样式 */
.red-settings .theme-management {
    max-height: 400px;
    overflow-y: auto;
    padding: 0 12px;
}

/* 自定义滚动条样式 */
.red-settings .theme-management::-webkit-scrollbar {
    width: 8px;
}

.red-settings .theme-management::-webkit-scrollbar-track {
    background: var(--background-primary);
    border-radius: 4px;
}

.red-settings .theme-management::-webkit-scrollbar-thumb {
    background: var(--background-modifier-border);
    border-radius: 4px;
}

.red-settings .theme-management::-webkit-scrollbar-thumb:hover {
    background: var(--background-modifier-border-hover);
}

/* 主题设置特有样式 */
.red-settings .theme-list {
    padding: 15px 0;
}

.red-settings .theme-list h4 {
    margin: 0 0 1.5rem;
    color: var(--text-normal);
    font-size: 1.2em;
}

.red-settings .theme-item {
    margin-bottom: 0.8rem;
    padding: 1rem;
    border-radius: 8px;
    background-color: var(--background-primary);
    border: 1px solid var(--background-modifier-border);
    transition: all 0.3s ease;
}

.red-settings .theme-item:hover {
    box-shadow: 0 4px 12px var(--background-modifier-box-shadow);
}

.red-settings .theme-item .setting-item {
    border: none;
    padding: 12px;
}

.red-settings .theme-item .setting-item-info {
    margin-right: 1.5rem;
}

.red-settings .theme-item .setting-item-name {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-normal);
}

.red-settings .theme-item .setting-item-description {
    color: var(--text-muted);
}

.red-settings .theme-item .setting-item-control .clickable-icon {
    padding: 6px;
    border-radius: 6px;
    color: var(--text-muted);
}

.red-settings .theme-item .setting-item-control .clickable-icon:hover {
    color: var(--text-normal);
    background-color: var(--background-modifier-hover);
}


/* 主题显示设置样式 */
.theme-visibility-container {
    margin-top: 20px;
}

.theme-visibility-container h3 {
    margin-bottom: 15px;
    font-size: 1.3em;
    color: var(--text-normal);
}

.theme-selection-container {
    display: flex;
    margin-top: 10px;
    gap: 15px;
    align-items: stretch;
}

.all-themes-container, .visible-themes-container {
    flex: 1;
    border: 1px solid var(--background-modifier-border);
    border-radius: 8px;
    padding: 15px;
    background-color: var(--background-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.all-themes-container h4, .visible-themes-container h4 {
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--background-modifier-border);
    font-size: 1.1em;
    color: var(--text-normal);
    text-align: center;
}

.control-buttons-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5px;
}

.control-buttons-container button {
    margin: 5px 0;
    padding: 8px 12px;
    border-radius: 6px;
    background-color: var(--interactive-normal);
    color: var(--text-normal);
    border: 1px solid var(--background-modifier-border);
    cursor: pointer;
    transition: all 0.2s ease;
}

.control-buttons-container button:hover {
    background-color: var(--interactive-hover);
}

.themes-list {
    max-height: 250px;
    overflow-y: auto;
    padding: 5px;
}

.theme-list-item {
    padding: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    border-radius: 6px;
    background-color: var(--background-secondary);
    transition: all 0.2s ease;
}

.theme-list-item:hover {
    background-color: var(--background-modifier-hover);
}

.theme-list-item.selected {
    background-color: var(--interactive-accent);
    color: var(--text-on-accent);
}

/* 自定义滚动条样式 */
.themes-list::-webkit-scrollbar {
    width: 6px;
}

.themes-list::-webkit-scrollbar-track {
    background: var(--background-primary);
    border-radius: 3px;
}

.themes-list::-webkit-scrollbar-thumb {
    background: var(--background-modifier-border);
    border-radius: 3px;
}

.themes-list::-webkit-scrollbar-thumb:hover {
    background: var(--background-modifier-border-hover);
}

/* 设置子区域折叠样式 */
.red-settings .red-settings-subsection {
    margin: 0 12px;
    border: 1px solid var(--background-modifier-border);
    border-radius: 8px;
    overflow-y: auto;
}

.red-settings .red-settings-subsection-header {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.8rem 1rem;
    background-color: var(--background-primary);
    transition: background-color 0.3s ease;
}

.red-settings .red-settings-subsection-header:hover {
    background-color: var(--background-modifier-hover);
}

.red-settings .red-settings-subsection-header h3 {
    margin: 0;
    flex: 1;
    font-size: 1.1em;
    color: var(--text-normal);
}

.red-settings .red-settings-subsection-toggle {
    margin-right: 0.5rem;
    color: var(--text-muted);
}

.red-settings .red-settings-subsection-content {
    display: none;
    padding: 1rem;
    margin: 0 20px;
    background-color: var(--background-primary);
}

.red-settings .red-settings-subsection.is-expanded .red-settings-subsection-content {
    display: block;
}

.red-settings-divider {
    margin: 15px 0;
    border: none;
    height: 1px;
    background-color: var(--background-modifier-border);
  }